/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  ActivitySubject.java 2016-01-25 16:32:42 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class ActivitySubject extends BaseDomain{

    private Integer status;
    private Long createDate;
    private Long lastModDate;
    private String title;
    private String content;
    private String cover;
    private String httpUrl;
    private String type;
    private String intro;

	public ActivitySubject(){
	}

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public Long getLastModDate() {
        return lastModDate;
    }

    public void setLastModDate(Long lastModDate) {
        this.lastModDate = lastModDate;
    }

    public void setTitle(String value) {
        this.title = value;
    }

    public String getTitle() {
        return this.title;
    }
    public void setContent(String value) {
        this.content = value;
    }

    public String getContent() {
        return this.content;
    }
    public void setCover(String value) {
        this.cover = value;
    }

    public String getCover() {
        return this.cover;
    }
    public void setHttpUrl(String value) {
        this.httpUrl = value;
    }

    public String getHttpUrl() {
        return this.httpUrl;
    }
    public void setType(String value) {
        this.type = value;
    }

    public String getType() {
        return this.type;
    }
    public void setIntro(String value) {
        this.intro = value;
    }

    public String getIntro() {
        return this.intro;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Status",getStatus())
			.append("CreateDate",getCreateDate())
			.append("LastModDate",getLastModDate())
			.append("Title",getTitle())
			.append("Content",getContent())
			.append("Cover",getCover())
			.append("HttpUrl",getHttpUrl())
			.append("Type",getType())
			.append("Intro",getIntro())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ActivitySubject == false) return false;
		if(this == obj) return true;
		ActivitySubject other = (ActivitySubject)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

